--用于各种测试

local a = 1
a = a << 32

function byte2bin(n)
local t = {}
  for i=32,0,-1 do
    t[#t+1] = math.floor(n / 2^i)
    n = n % 2^i
  end
  return table.concat(t)
end
print(byte2bin(a))